import com.practice2.exercise.User;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserText {
    @Test
    public void test1() {

        ClassPathXmlApplicationContext hong = new ClassPathXmlApplicationContext("user.xml");
         User user1 = (User)hong.getBean("user1");
         user1.setName("hong");
         user1.setId(001);
         user1.show();

         User user2 = (User)hong.getBean("user2");
         user2.setName("run");
         user2.setId(002);
         user2.show();
    }
}
